﻿$(document).ready(function () {

})


function DeleteGoods(ID) {
    
    art.dialog({
        title: "系统提示",
        lock: true,
        content: '确定要删除吗? 此操作不可恢复',
        ok: function () {
            this.lock();
            doAjax("../", "DelOpinion", { "ID": ID }, "text", function (text) {
                if (text == "1") {
                    art.dialog
                                ({
                                    title: '系统提示',
                                    time: 0.5,
                                    content: '删除成功！',
                                    close: function () { window.location = window.location; },
                                    lock: true
                                });
                } else {
                    art.dialog
                             ({
                                 title: '系统提示',
                                 time: 4,
                                 content: ("系统错误 请与系统管理员联系！"),
                                 lock: true
                             });                  
                }
            })
            return false;
        },
        cancelVal: '取消',
        cancel: true //为true等价于function(){}
    })
}